﻿using System.Collections.Generic;

namespace Com.OpenCode.DwgConvert.Model
{
    /// <summary>
    /// 日志对象
    /// </summary>
    public class DataConvertLog : IDataConvertLog
    {
        public DataConvertLog()
        {
            logItems = new List<ILogItem>();
        }
        public List<ILogItem> logItems { get; protected set; }

        public void Add(ILogItem logItem)
        {
            if (logItem != null)
            {
                logItems.Add(logItem);
            }
        }

        public void Clear()
        {
            logItems.Clear();
        }

        public void Delete(ILogItem logItem)
        {
            logItems.Remove(logItem);
        }
    }
}